{include theme=com/head}

<section class="searchform" bosscms="searchform">
  <article>{search class=html items=items.id}{/search}</article>
</section>
{if:($G.keyword)}
<section class="searchlist" bosscms="searchlist" search>
  <article>
    {search class=list data=$search items=items.id keywrod=$G.keyword}{/search}
    {if:($search.list)}
	  <ul>
      {foreach data=$search.list}
      <li>
        {if:($v.image)}
        <img src="{$v.image}" alt="{$v.title}" />
        {/if}
        <span>
          <h3><a href="{$v.url}" title="{$v.title}">{$v.title|mb_substr=0,100}</a></h3>
          <p>{$v.text|strip_tags|mb_substr=0,200}</p>
          <i>{if:($v.time)}{$v.time|date='Y-m-d',###}{/if}</i>
        </span>
      </li>
      {/foreach}
	  </ul>
    {pages class=html set=$search.pages display=true}{/pages}    
    {else}
    <h3 class="null-box">{config.search_null}</h3>
    {/if}
  </article>
</section>
{/if}

{include theme=com/foot}